<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><!DOCTYPE HTML>
<%-- <%@include file="edit.jsp"%> --%>
<html>
<head>
<script type="text/javascript">
	$(function() {
		$('#enabled').radiobox({name:'entity.enabled',value:true,data:[[true,'有效'],[false,'无效']]});
		$('#iUserType').combobox({
		    data:$codelist('userType'),editable:false,width:180
		});
		$('#toolbar').toolbar({buttons:[
			{name:'save',iconCls:'icon-save',text:'保存'}
	  	],handler:handler});
	});
	function handler() {
		switch(this.name) {
			case 'save': toSave();break;
		}
	}
	function toSave(){
		$.messager.progress({title:'系统提示',text:'数据处理中，请耐心等待...'});
		$.submit('#dataform',function(r) {
			$.messager.progress('close');
			if(r.code<0) return $alert(r.msg);
			top.$prompt('保存成功');
			top.$window.close(window,1,null);
		});
	}
</script>
</head>
<body>
	<div id="toolbar" class="toolbar" ></div>
	<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'center',border:false">
			<form id="dataform" action="add" method="post">
				<input type="hidden" name="entity.id" value="${item.id }" />
				<input type="hidden" name="entity.pid" value="0" />
				<table class="form-tbl">
					<tr class="form-tr">
						<th class="form-th">姓名:</th>
						<td class="form-td">
							<input type="text" name="entity.nickname" value="${item.nickname }" class="form-text" style="width:170px;" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</body>
</html>